package com.r2coding.types.common;

/**
 * 项目通用常量配置
 *
 * @author caolx
 * @description 项目通用常量配置
 * @date 2025/7/29 15:11
 */
public class Constants {

    private Constants() {

    }

    /**
     * 分隔符
     */
    public static final String SPLIT = ",";

    /**
     * 分号
     */
    public static final String COMMA = ";";

    /**
     * 冒号
     */
    public static final String COLON = ":";

    /**
     * Redis Key统一配置
     *
     * @author caolx
     * @description Redis Key统一配置
     * @date 2025/7/29 15:11
     */
    public static class RedisKey {
        private RedisKey() {

        }

        /**
         * 大营销奖品缓存Key
         */
        public static final String STRATEGY_AWARD_KEY = "r2coding:big_market:strategy_%d:award";
        /**
         * 大营销策略奖品中奖概率缓存key
         */
        public static final String STRATEGY_RATE_SEARCH_TABLE_KET = "r2coding:big_market:strategy_%d:rate_table";
        /**
         * 大营销策略奖品中奖概率范围
         */
        public static final String STRATEGY_RATE_RANGE_KEY = "r2coding:big_market:strategy_%d:rate_range";

        /**
         * 大营销策略奖品 策略权重中奖概率缓存key
         */
        public static final String STRATEGY_RATE_WEIGHT_SEARCH_TABLE_KET = "r2coding:big_market:strategy_%d:weight_%d:rate_table";

        /**
         * 大营销策略奖品 策略奖品中奖概率范围
         */
        public static final String STRATEGY_RATE_WEIGHT_RANGE_KEY = "r2coding:big_market:strategy_%d:weight_%d:rate_range";
    }
}
